package com.jinxi.algorithm.leetcode;

/**
 * @Autho changqi.wu
 * @Date 路在脚下，使劲踩！
 */
public class OneTimeWord {

    public static int singleNumber(int[] nums) {
        int single = 0;
        for (int num : nums) {
            single ^= num;
            System.out.println(single);
        }
        return single;
    }


    public static void main(String[] args) {
        int[] nums = {1, 1, 2, 2, 3};

        System.out.println(singleNumber(nums));

    }



}

